package LEKIEUANH.OOP.LEVEL2.ex05;

public class TestStock {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		/*
		 * Tạo 1 object có symbol SUNW, name là Sun Microsystems Inc, previousClosingPrice là 
		 * 100, current price là 90
		 * */ 
		Stock objStock = new Stock();
		
		objStock.setSymbol("SUNW");
		objStock.setName("Sun Microsystems Inc");
		objStock.setPreviousClosingPrice(100);
		objStock.setCurrentPrice(90);
		
		String ChuoiKQ = objStock.changePercent();
		System.out.println("Symbol: " + objStock.getSymbol());
		System.out.println("Name: " + objStock.getName());
		System.out.println("Price-changePercent = " + ChuoiKQ + "%");

	}

}
